//关于日志等级所相关的操作
#ifndef LOGLEVEL_HPP
#define LOGLEVEL_HPP
#include <iostream>
#include <string>
namespace blog
{
    class logLevel
    {
    public:
        enum class value
        {
            UNKNOWN = 0,
            DEBUG,
            INFO,
            WARN,
            ERR,
            FATAL,
            OFF
        };
        static std::string toString(blog::logLevel::value value)
        {
            switch (value)
            {
            case value::DEBUG:
                return "DEBUG";
            case value::INFO:
                return "INFO";
            case value::WARN:
                return "WARN";
            case value::ERR:
                return "ERR";
            case value::FATAL:
                return "FATAL";
            case value::OFF:
                return "OFF";
            default:
                return "UNKNOWN";
            }
            return "UNKNOWN";
        }
    };
}

#endif